#!/bin/sh

: "${GOLANGCI_LINT_VERSION=v1.23.8}"

install_golangci_lint() {
	set -e
	echo "Install golangci-lint version ${GOLANGCI_LINT_VERSION}"
	GOBIN="${PREFIX}" GO111MODULE=on go install "github.com/golangci/golangci-lint/cmd/golangci-lint@${GOLANGCI_LINT_VERSION}"
	"${PREFIX}"/golangci-lint --version
}
